package com.eeds.dao;

import com.eeds.common.model.PageInfo;
import com.eeds.common.table.ProAdminEntity;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.eeds.model.project.req.ReqGetProjectBaseInfoVO;
import com.eeds.model.project.req.ReqGetProjectInfoVO;
import com.eeds.model.project.req.ReqGetProjectListVO;
import com.eeds.model.project.res.ResGetProjectBaseInfoVO;
import com.eeds.model.project.res.ResGetProjectInfoVO;
import com.eeds.model.project.res.ResGetProjectListVO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 项目主表
 * 
 * @author Flying
 * @email flying_miku@sina.com
 * @date 2019-09-03 20:26:00
 */
@Repository
public interface ProAdminDao extends BaseMapper<ProAdminEntity> {

    /**
     * 项目信息列表
     * @param pageInfo
     * @param reqGetProjectListVO
     * @return
     */
    List<ResGetProjectListVO> getProjectList(@Param("pageInfo") PageInfo<ResGetProjectListVO> pageInfo, @Param("reqGetProjectListVO") ReqGetProjectListVO reqGetProjectListVO);


    /**
     * 项目信息列表总记录数
     * @param reqGetProjectListVO
     * @return
     */
    Integer getProjectListTotalCount(@Param("reqGetProjectListVO") ReqGetProjectListVO reqGetProjectListVO);

    /**
     * 获取项目信息
     * @param reqGetProjectInfoVO
     * @return
     */
    ResGetProjectInfoVO getProjectInfo(@Param("reqGetProjectInfoVO") ReqGetProjectInfoVO reqGetProjectInfoVO);

    /**
     * 获取项目基本信息
     * @param reqGetProjectBaseInfoVO
     * @return
     */
    ResGetProjectBaseInfoVO getProjectBaseInfo(@Param("reqGetProjectBaseInfoVO") ReqGetProjectBaseInfoVO reqGetProjectBaseInfoVO);
}
